package com.app.model;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by IntelliJ IDEA.
 * User: mosg
 * Date: 12-2-26
 * Time: 下午8:40
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "org_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @Id
    @GenericGenerator(name="UserGenerator", strategy="native") //这个是hibernate的注解
    @GeneratedValue(generator="UserGenerator") //使用uuid的生成策略
    private Integer id;
    private String username; //用户名
    private String password; //密码

    private String ename;//员工姓名
    private String sex;//性别
    private String phone;//联系电话
    private String email;//邮件
    private String qq;//qq号码
    private String address;//住址
    private String positionId;  //岗位id 外键 对应岗位表position
    private String positionName;  //岗位名称
    private String idCard;//身份证号码
    private String inductionDate;//入职时间
    private Date createDate;//
    private Integer status;//是否离职    0=在职    1=离职

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPositionId() {
        return positionId;
    }

    public void setPositionId(String positionId) {
        this.positionId = positionId;
    }

    public String getPositionName() {
        return positionName;
    }

    public void setPositionName(String positionName) {
        this.positionName = positionName;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getInductionDate() {
        return inductionDate;
    }

    public void setInductionDate(String inductionDate) {
        this.inductionDate = inductionDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}
